package com.healthcloud.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.healthcloud.dao.HospitalMasterConversionDao;
import com.healthcloud.entity.HospitalMasterConversionEntity;
import com.healthcloud.service.HospitalMasterConversionService;
import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("hospitalMasterConversionService")
@Transactional
public class HospitalMasterConversionServiceImpl implements HospitalMasterConversionService {
	@Autowired
	private HospitalMasterConversionDao hospitalMasterConversionDao;
	
	@Override
	public HospitalMasterConversionEntity queryObject(Integer id){
		return hospitalMasterConversionDao.queryObject(id);
	}
	
	@Override
	public List<HospitalMasterConversionEntity> queryList(HospitalMasterConversionEntity bean, PageParam pageParam){
		return hospitalMasterConversionDao.queryList(bean, pageParam);
	}
	
	@Override
	public int queryTotal(HospitalMasterConversionEntity bean){
		return hospitalMasterConversionDao.queryTotal(bean);
	}
	
	@Override
	public void save(HospitalMasterConversionEntity hospitalMasterConversion){
		hospitalMasterConversionDao.save(hospitalMasterConversion);
	}
	
	@Override
	public void update(HospitalMasterConversionEntity hospitalMasterConversion){
		hospitalMasterConversionDao.update(hospitalMasterConversion);
	}
	
	@Override
	public void delete(Integer id){
		hospitalMasterConversionDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		hospitalMasterConversionDao.deleteBatch(ids);
	}

	@Override
	public List<HospitalMasterConversionEntity> queryByName(String hospName, PageParam pageParam) {
		return hospitalMasterConversionDao.queryByName(hospName,pageParam);
	}

	@Override
	public int queryCount (String hospName) {
		return hospitalMasterConversionDao.queryCount(hospName);
	}
}
